package com.backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 预定表
 * @TableName reservation
 */
@TableName(value ="reservation")
@Data
public class Reservation implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 房间号
     */
    @TableField(value = "roomID")
    private String roomID;

    /**
     * 房间号
     */
    @TableField(value = "roomNum")
    private String roomNum;

    /**
     * 房间图片
     */
    @TableField(value = "roomAvatar")
    private String roomAvatar;

    /**
     * 费用
     */
    @TableField(value = "totalAmount")
    private Integer totalAmount;

    /**
     * 预约开始时间
     */
    @TableField(value = "startTime")
    private Date startTime;

    /**
     * 预约结束时间
     */
    @TableField(value = "endTime")
    private Date endTime;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Byte isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}